Simple KVCache
open class SimpleKVCache<K, V>(cachedValuesCount: Int, kvParent: KeyValueRepo<K, V> = MapKeyValueRepo<K, V>()) : KVCache<K, V> , KeyValueRepo<K, V>
Content copied to clipboard
Constructors
Link copied to clipboard
fun <K, V> SimpleKVCache(cachedValuesCount: Int, kvParent: KeyValueRepo<K, V> = MapKeyValueRepo<K, V>())
Content copied to clipboard
Functions
Link copied to clipboard
By default, will remove all the data of current repo using doAllWithCurrentPaging, keys and unset
Link copied to clipboard
open suspend override fun keys(pagination: Pagination, reversed: Boolean): PaginationResult<K>
Content copied to clipboard
open suspend override fun keys( v: V, pagination: Pagination, reversed: Boolean): PaginationResult<K>
Content copied to clipboard
This method should use sorted by Keys search and take the PaginationResult. By default, it should use ascending sort for Keys
Link copied to clipboard
By default, will walk throw all the keys with Values from toUnset and run doAllWithCurrentPaging with unset of found data Keys
Link copied to clipboard
open suspend override fun values(pagination: Pagination, reversed: Boolean): PaginationResult<V>
Content copied to clipboard
This method should use sorted by Keys search and take the PaginationResult. By default, it should use ascending sort for Keys